require 'fileutils'
require 'test/unit'


class ScratchDirTestCase < Test::Unit::TestCase
  @@test_dir = File.dirname(File.expand_path(__FILE__))
  @@project_dir = File.dirname(@@test_dir) # Gets parent directory
  @@scratch_dir = File.join(@@project_dir, 'scratch')

  def setup
    FileUtils.rm_rf @@scratch_dir
    FileUtils.mkdir @@scratch_dir
    FileUtils.cd @@scratch_dir
  end

  def teardown
    FileUtils.cd @@test_dir
    FileUtils.rm_rf @@scratch_dir
  end

  def test_dummy
    # This method is here because Test::Unit will complain otherwise.
  end
end
